package com.shop.dto;

import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;

@Data
public class ProductDTO {
    private Long id;
    
    @NotBlank(message = "商品编码不能为空")
    private String productCode;
    
    @NotBlank(message = "商品名称不能为空")
    private String name;
    
    private String description;
    
    @NotNull(message = "价格不能为空")
    @Positive(message = "价格必须为正数")
    private Double price;
    
    @NotNull(message = "库存不能为空")
    @Positive(message = "库存必须为正数")
    private Integer stockQuantity;
    
    private String category;
    private String unit;
    private Integer status;
} 